<template>
  <div>
    <el-card>
      <div class="header">
        <h1>选择软件</h1>
        <i></i>
      </div>
      <div class="inp">
        <el-input placeholder="腾讯QQ" v-model="input1"></el-input>
        <div class="search">
          <i></i>
        </div>
      </div>

      <el-dropdown>
        <span class="el-dropdown-link">
          <p class="el-dropdown-link">
            筛选
            <i></i>
          </p>
        </span>
        <el-dropdown-menu slot="dropdown">
          <el-dropdown-item>最新下载</el-dropdown-item>
          <el-dropdown-item>最新发布</el-dropdown-item>
        </el-dropdown-menu>
      </el-dropdown>
      <!-- 表格 -->
      <el-table
        ref="multipleTable"
        :data="tableData"
        tooltip-effect="dark"
        style="width: 93%"
        border
        @selection-change="handleSelectionChange"
      >
        <el-table-column type="selection" width="55" highlight-current-row></el-table-column>
        <!-- <el-table-column label="日期" width="120">
          <template slot-scope="scope">{{ scope.row.date }}</template>
        </el-table-column>-->
        <el-table-column prop="name" label="姓名" width="120"></el-table-column>
        <el-table-column prop="address" label="地址" show-overflow-tooltip></el-table-column>
      </el-table>
      <!-- 页码 -->
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="currentPage4"
        :page-sizes="[100, 200, 300, 400]"
        :page-size="100"
        layout="total, sizes, prev, pager, next, jumper"
        :total="400"
      ></el-pagination>
      <div class="footer">
        <el-button>取消</el-button>
        <el-button>确定</el-button>
      </div>
    </el-card>
  </div>
</template>


<script>
export default {
  data() {
    return {
      input1: "",
      tableData: [
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄"
        },
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄"
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄"
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄"
        },
        {
          date: "2016-05-08",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄"
        }
      ],
      multipleSelection: [],
      currentPage1: 5,
      currentPage2: 5,
      currentPage3: 5,
      currentPage4: 4
    };
  },
  methods: {
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    }
  }
};
</script>



<style scoped>
.el-card {
  padding-left: 68px;
}
h1 {
  display: inline-block;
  font-weight: 400;
  color: #3040a0;
  margin-left: 0;
}
.header {
  margin-bottom: 16px;
}
.header i {
  /* display: inline-block; */
  width: 24px;
  height: 24px;
  background: url("../assets/img/close.png") no-repeat;
  background-size: 24px;
  float: right;
}
.el-input {
  width: 194px;
  height: 32px;
  float: left;
}
.search {
  float: left;
  width: 58px;
  height: 36px;
  background: #eaecf7;
  /* border: 1px solid rgba(0, 0, 0, 0.1); */
  border-radius: 0px 3px 3px 0px;
  position: relative;
}
.search i {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("../assets/img/search.png") no-repeat;
  background-size: 24px;
  position: absolute;
  top: 7px;
  left: 16px;
}
p {
  float: right;
  /* margin-right: 100px; */
}
p i {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url("../assets/img/shaixuan.png") no-repeat;
  background-size: 12px;
  /* transform: rotate(90); */
}
.el-table {
  margin-right: 100px;
  margin-bottom: 45px;
}
.el-dropdown {
  float: right;
  width: 50px;
  height: 50px;
  margin-right: 115px;
}
.el-pagination {
  /* margin: auto; */
  text-align: center;
  margin-bottom: 36px;
}
.footer {
  float: right;
  margin-bottom: 32px;
}
.footer .el-button {
  width: 80px;
  height: 47px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 18px;
}
.footer .el-button:nth-child(2) {
    background: url('../assets/img/btn.png') no-repeat;
    background-size: 80px 47px;
    color: #fff;
    
}
</style>